var Sequelize = require('sequelize');
var CONFIG = module.exports;

CONFIG.GM_DB = {
    host: '49.235.28.88',
    port: '3306',
    user: 'root',
    password: 'NYLzxw.68824',
    database: 'niyueling',
    connectionLimit: 500,
    charset : 'utf8mb4',
    dialect: 'mysql'
};

CONFIG.PICSMAINPATH = '/mnt/niyueling';

CONFIG.Sequelize = new Sequelize(CONFIG.GM_DB.database, CONFIG.GM_DB.user, CONFIG.GM_DB.password, {
    host: CONFIG.GM_DB.host,
    port: CONFIG.GM_DB.port,
    dialect: CONFIG.GM_DB.dialect,
    pool: {
        max: CONFIG.GM_DB.connectionLimit,
        min: 0,
        acquire: 30000,
        idle: 10000
    },
    timezone: '+08:00'
});

CONFIG.qiniu_cfg = {
    access_key: '4QSRDZi4bvqdOFAptPb5t2xWdTBsIKRqY6JUOHzB',
    secret_key: 'BPqU-6O6LJ4bDdgNF9CkwlvBZ8quxAjMpt2rcuuh',
    bucket: 'codding',
    url: 'https://pic.mb1949.com/',
}

CONFIG.RDS_PORT = 6379;
CONFIG.RDS_HOST = '127.0.0.1';
CONFIG.RDS_PWD = 'root';
CONFIG.RDS_OPTS = {};
CONFIG.TokenRedisDb = 6;
CONFIG.PDCookiesRedisDb = 3;
CONFIG.ShortLinkDb = 4;
CONFIG.ApiHighLvlTokenRedisDb = 2;